package com.wt.vo;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Author hiberk
 * Date 2017/6/28 14:26
 * 经销商的详情页model
 */
public class DistributorIncome {
    private Date date;              //日期
    private int registerCount;      //注册总用户数
    private int orderCount;         //订单总数
    private int orderMemberCount; //订单的用户数量
    private BigDecimal orderWorth;    //总订单价值
    private BigDecimal commission;//返还的佣金
    /*private Distributor distributor;
    private Member member;
    private OrderInforItem orderInforItem;*/

    /*public Distributor getDistributor() {
        return distributor;
    }

    public void setDistributor(Distributor distributor) {
        this.distributor = distributor;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public OrderInforItem getOrderInforItem() {
        return orderInforItem;
    }

    public void setOrderInforItem(OrderInforItem orderInforItem) {
        this.orderInforItem = orderInforItem;
    }*/

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getRegisterCount() {
        return registerCount;
    }

    public void setRegisterCount(int registerCount) {
        this.registerCount = registerCount;
    }

    public int getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(int orderCount) {
        this.orderCount = orderCount;
    }

    public int getOrderMemberCount() {
        return orderMemberCount;
    }

    public void setOrderMemberCount(int orderMemberCount) {
        this.orderMemberCount = orderMemberCount;
    }

    public BigDecimal getOrderWorth() {
        return orderWorth;
    }

    public void setOrderWorth(BigDecimal orderWorth) {
        this.orderWorth = orderWorth;
    }

    public BigDecimal getCommission() {
        return commission;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }


    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        try {
            Date date = format.parse("2017-06-30");
            System.out.println(date.getTime() - 24*60*60*1000);
            System.out.println(format.format(date.getTime()));
        } catch (ParseException e) {
            e.printStackTrace();
        }

        System.out.println(format.format(new Date()));
        System.out.println(new Date().getTime());
        System.out.println(1498747941*1000);
        System.out.println(format.format(new Date(1498747941*1000)));
    }
}
